package com.vencent.spring.bean;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class Person {
	
	@Async
	public void playAfterDinner(int time){
		System.out.println("吃饭后" + time + "min在玩游戏");
	}
	
	@Async
	public void playBeforeDinner(int time){
		System.out.println("吃饭前" + time + "min不玩游戏");
	}
}
